/**
 * ITmPackFactoryService.java
 * Created at 2017-3-14
 * Created by xieshuang
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.basic.service;

import java.util.List;
import java.util.Map;

import com.broadtext.common.exp.DaoException;
import com.broadtext.common.exp.ServiceException;
import com.broadtext.common.service.IEntityService;
import com.broadtext.rms.basic.model.TmPackFactory;

/**
 * <p>ClassName: ITmPackFactoryService</p>
 * <p>Description: 电池pack生产厂服务层接口</p>
 * <p>Author: xieshuang</p>
 * <p>Date: 2017-3-14</p>
 */
public interface ITmPackFactoryService extends IEntityService<TmPackFactory>{

    /**
     * 
     * <p>Description: 获取厂区名列表供下拉框使用</p>
     * @return 结果集
     * @throws DaoException 异常
     */
    List<Map<String, String>> getPackFactoryNameList() throws DaoException;

    /**
     * 
     * <p>Description: 根据主键获取对象</p>
     * @param id 主键
     * @return 对象
     * @throws DaoException 异常
     */
    TmPackFactory getPackFactoryById(String id) throws DaoException;

    /**
     * 
     * <p>Description: 删除</p>
     * @param idArray 主键数组
     * @param updateUser 操作人
     * @return 判断标志
     * @throws DaoException 异常
     */
    String delete(String[] idArray, String updateUser) throws DaoException;

    /**
     * 
     * <p>Description: 新增or编辑厂区</p>
     * @param t 对象
     * @param currentUser 当前登录人
     * @return 保存标志
     * @throws ServiceException 异常
     * @throws DaoException 异常
     */
    Object saveOrUpdate(TmPackFactory t, String currentUser) throws ServiceException, DaoException;

}
